<template>
  <div id="profile">
    <nav-bar class="nav-bar"
      ><template v-slot:center>
        <div>我的档案</div>
      </template></nav-bar
    >
    <user-login></user-login>
    <user-account></user-account>
    <extend-list :list-data="orderList" />
    <extend-list :list-data="serviceList" />
  </div>
</template>

<script>
import NavBar from "components/common/navbar/Navbar.vue";

import ExtendList from "./childProfile/ExtendList";
import UserAccount from "./childProfile/UserAccount";
import UserLogin from "./childProfile/UserLogin";

export default {
  name: "Profile",
  components: {
    NavBar,
    ExtendList,
    UserAccount,
    UserLogin,
  },
  data() {
    return {
      orderList: [
        { icon: "message.svg", info: "我的消息" },
        { icon: "pointer.svg", info: "积分商城" },
        { icon: "vip.svg", info: "会员卡" },
      ],
      serviceList: [
        { icon: "cart.svg", info: "我的购物车" },
        { icon: "shopping.svg", info: "下载购物APP" },
      ],
    };
  },
};
</script>

<style scoped>
#profile {
  background-color: #f2f2f2;
}
.nav-bar {
  background-color: var(--color-tint);
  color: #fff;
}
</style>